package org.jsola.hr.web;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.jsola.core.Page;
import org.jsola.core.Result;
import org.jsola.hr.dto.LawsRegulationsAddDTO;
import org.jsola.hr.dto.LawsRegulationsUpdateDTO;
import org.jsola.hr.query.LawsRegulationsQuery;
import org.jsola.hr.vo.LawsRegulationsListVO;
import org.jsola.hr.vo.LawsRegulationsVO;

import java.util.List;

/**
 * 卫人云-政策法规
 *
 * @author zhr
 */
@Api(tags = "hr-卫人云-政策法规")
public interface ILawsRegulationsControllerAPI {

    /**
     * 新增卫人云-政策法规
     * @param lawsRegulationsAddDTO 卫人云-政策法规新增实体
     * @return 卫人云-政策法规展示对象
     */
    @ApiOperation(value = "新增卫人云-政策法规")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "lawsRegulationsAddDTO", dataType = "LawsRegulationsAddDTO", value = "新增卫人云-政策法规", paramType = "body")
    })
    Result<LawsRegulationsVO> save(LawsRegulationsAddDTO lawsRegulationsAddDTO);


    /**
     * 修改卫人云-政策法规
     * @param lawsRegulationsUpdateDTO 卫人云-政策法规
     * @return 更新数量
     */
    @ApiOperation(value = "修改卫人云-政策法规")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "lawsRegulationsUpdateDTO", dataType = "LawsRegulationsUpdateDTO", value = "修改卫人云-政策法规", paramType = "body")
    })
    Result<Integer> update(LawsRegulationsUpdateDTO lawsRegulationsUpdateDTO);




    /**
     * 删除单个卫人云-政策法规，彻底删除
     * @param lawsRegulationsId 卫人云-政策法规id
     * @return 删除数量
     */
    @ApiOperation(value="删除单个卫人云-政策法规，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "lawsRegulationsId", dataType = "String", value = "卫人云-政策法规id", paramType = "path")
    })
    Result<Integer> delete(String lawsRegulationsId);


    /**
     * 批量删除卫人云-政策法规，彻底删除
     * @param lawsRegulationsIds 卫人云-政策法规id集合
     * @return 删除数量
     */
    @ApiOperation(value = "批量删除卫人云-政策法规，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "lawsRegulationsIds", dataType = "String[]", value = "卫人云-政策法规id数组", paramType = "body" ,allowMultiple = true)
    })
    Result<Integer> deleteBatch(String[] lawsRegulationsIds);


    /**
     * 根据卫人云-政策法规id查询卫人云-政策法规详情
     * @param lawsRegulationsId 卫人云-政策法规id
     * @return 卫人云-政策法规详情
     */
    @ApiOperation(value="根据卫人云-政策法规id查询卫人云-政策法规详情")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "lawsRegulationsId", dataType = "String", value = "卫人云-政策法规id", paramType = "path")
    })
    Result<LawsRegulationsVO> findById(String lawsRegulationsId);


    /**
     * 查询卫人云-政策法规
     * @param lawsRegulationsQuery 卫人云-政策法规查询参数
     * @return page
     */
    @ApiOperation(value="查询卫人云-政策法规")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "lawsRegulationsQuery", dataType = "LawsRegulationsQuery", value = "卫人云-政策法规查询参数", paramType = "query")
    })
    Result<List<LawsRegulationsListVO>> listAll(LawsRegulationsQuery lawsRegulationsQuery);


     /**
     * 分页查询卫人云-政策法规
     * @param lawsRegulationsQuery 卫人云-政策法规查询参数
     * @return page
     */
    @ApiOperation(value="分页查询卫人云-政策法规")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "lawsRegulationsQuery", dataType = "LawsRegulationsQuery", value = "卫人云-政策法规查询参数", paramType = "query")
    })
    Result<Page<LawsRegulationsListVO>> page(LawsRegulationsQuery lawsRegulationsQuery);


}

